package com.easygem.front.service;

import com.easygem.common.error.SystemException;
import com.easygem.common.model.system.User;
import com.easygem.common.vo.front.SeatVO;
import com.easygem.common.vo.system.DepartmentVO;
import com.easygem.common.vo.system.PageVO;
import com.easygem.front.mapper.SeatMapper;
import com.easygem.front.service.base.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * @author 廖思炜
 * @version 1.0
 * @className SeatService
 * @Description TODO 坐席服务层接口
 * @date 2025/3/25 9:14
 */

public interface SeatService extends IBaseService<SeatMapper, User,Integer> {
    /**
     * 根据多条件查询
     * @param pageNum
     * @param pageSize
     * @param seatVO
     * @return
     */
    PageVO<User> findList(Integer pageNum, Integer pageSize, SeatVO seatVO) throws SystemException;

    /**
     * 获得所有部门
     *
     * @return
     */
    public List<DepartmentVO> getAllDeptList();

    /**
     * 设置坐席状态
     * @param seatVO
     * @return
     * @throws SystemException
     */
    public Integer setSeatStatus(SeatVO seatVO) throws SystemException;



    /**
     * 绑定手机号
     * @param seatVO
     * @return
     * @throws SystemException
     */
    public Integer bindPhone(SeatVO seatVO) throws SystemException;

    /**
     * 解绑号码
     * @return
     * @throws SystemException
     */
    public Integer unBindingPhone() throws SystemException;

    /**
     * 得到当前已验证过的号码，若未经过验证则判定为未绑定
     * @return
     */
    public String getBindPhone();

    /**
     * 得到当前已设置的坐席数量与最大坐席数量
     *
     * @return
     */
    public Map<String, Object> selectSeatsCount(String accountName);
    /**
     * 检查状态是否存在
     * @param user
     * @return
     */
    public Integer checkStatus(User user);

    /**
     * 得到相同查询条件下的所有坐席
     */
    public List<SeatVO> getAllSeatVO(SeatVO seatVO) throws SystemException;
}
